<!DOCTYPE html>
<!-- <html xmlns:th="http://www.thymeleaf.org"> -->
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title></title>
<script type="text/javascript" src="../js/jquery-2.1.1.min.js"></script>
<link rel="stylesheet" href="../js/layui/css/layui.css">
<script src="../js/layui/layui.all.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/layui-xtree/layui-xtree.js"></script>
<script type="text/javascript" src="../js/WebCalendar.js"></script>
</head>
<body>
<script type="text/javascript">
var loginname;
$(function (){
	stuseach();
	 loginname =	window.localStorage.getItem("loginame");
})
var tabobj;
 function stuseach(){
	 layui.use(['form','laypage', 'layer', 'table', 'carousel', 'upload', 'element','slider'], function(){
		 
		  var laydate = layui.laydate //日期
		  ,laypage = layui.laypage //分页
		  ,layer = layui.layer //弹层
		  ,table = layui.table //表格
		  ,carousel = layui.carousel //轮播
		  ,upload = layui.upload //上传
		  ,form = layui.form
		  ,element = layui.element; //元素操作
		  var slider = layui.slider //滑块
		  
		  //form.render();
		  
		  var name = $("#name").val();
		  var phone = $("#phone").val();
		   var qq = $("#qq").val();
		   var zxs = $("#zxs option:selected").val();
		   var isPay = $("#isPay option:selected").val();
		   var isyou = $("#isyou option:selected").val();
		   var ishui = $("#ishui option:selected").val();
		   var sort = $("#sort option:selected").val();
		 // var askerId = $("#askerId option:selected").val();
		  
		//执行渲染
		tabobj  =  table.render({
		    elem: '#stutab',//指定原始表格元素选择器（推荐id选择器）
		    toolbar:"#studiv"
		    ,url:"selAllStudent"
		    ,method:'post',
		    page:true,
		    where:{
		    	//askerId : askerId,
		    	name : name,
		    	qq : qq,
		    	isPay : isPay,
		    	askerId : zxs,
		    	phone : phone,
		    	isValid : isyou,
		    	isReturnVist : ishui,
		    	sort : sort
		    }
		    ,width:1690
		    ,height: 715 //容器高度
		    ,  cols:  [[ //标题栏
		        {checkbox: true,}
		        ,{field: 'id', title: 'ID', width: 60}
		        ,{field: 'name', title: '角色名', width: 100}
		        ,{field: 'sex', title: '性别名', width: 100}
		        ,{field: 'age', title: '年龄', width: 100}
		        ,{field: 'phone', title: '电话', width: 100}
		        ,{field: 'stuStatus', title: '学历', width: 100}
		        ,{field: 'perState', title: '个人状态', width: 100}
		        ,{field: 'msgSource', title: '来源渠道', width: 100}
		        ,{field: 'sourceUrl', title: '来源网址', width: 100}
		        ,{field: 'sourceKeyWord', title: '来源关键词', width: 100}
		        ,{field: 'address', title: '地址', width: 100}
		        ,{field: 'netPusherId', title: '网络咨询ID', width: 100}
		        ,{field: 'askerId', title: '咨询师ID', width: 100}
		        /* ,{field: 'askerIds', title: '咨询师名字', width: 100,templet : function (d){
		        	return "<em>"+d.asker.askerName+"</em>"
		        }} */
		        ,{field: 'createUser', title: '录入人姓名', width: 100}
		        ,{field: 'isBaoBei', title: '报备', width: 100}
		        ,{field: 'stuConcern', title: '学员关注', width: 100}
		        ,{field: 'qq', title: 'QQ', width: 100}
		        ,{field: 'weiXin', title: '微信', width: 100}
		        ,{field: 'content', title: '备注', width: 100}
		        ,{field: 'learnForward', title: '课程方向', width: 100}
		        ,{field: 'isValid', title: '有效', width: 100}
		        ,{field: 'record', title: '打分', width: 100}
		        ,{field: 'isReturnVist', title: '回访', width: 100}
		        ,{field: 'firstVisitTime', title: '首次回访', width: 100}
		        ,{field: 'isHome', title: '上门', width: 100}
		        ,{field: 'homeTime', title: '上门时间', width: 100}
		        ,{field: 'lostValid', title: '无效原因', width: 100}
		        ,{field: 'isPay', title: '付款', width: 100}
		        ,{field: 'payTime', title: '付款时间', width: 100}
		        ,{field: 'money', title: '金额', width: 100}
		        ,{field: 'isReturnMoney', title: '退款', width: 100}
		        ,{field: 'isInClass', title: '进班', width: 100}
		        ,{field: 'inClassTime', title: '进班时间', width: 100}
		        ,{field: 'inClassContent', title: '进班备注', width: 100}
		        ,{field: 'askerContent', title: '咨询师备注', width: 100}
		        ,{field: 'isDel', title: '删除', width: 100}
		        ,{field: 'fromPart', title: '来源部门', width: 100}
		        ,{field: 'ziXunName', title: '咨询师填写名字', width: 100}
		        ,{field: 'returnMoneyReason', title: '退费原因', width: 100}
		        ,{field: 'preMoney', title: '定金', width: 100}
		        ,{field: 'preMoneyTime', title: '定金时间', width: 100}
		        ,{field: 'createTime', title: '创建时间', width: 100}
		        ,{fixed: 'right', width:230, title: '操作', align:'center', toolbar: '#barDemo'}
		        ,{fixed: 'right', width:140, align:'center', title: '动态', toolbar: '#twobarDemo'}
		      ]]
		  });
		
		});
 }
 var sid;
 var sname;
 
 
 
 layui.use(['form','laypage', 'layer', 'table', 'carousel', 'upload', 'element','slider'], function(){
	 
	  var laydate = layui.laydate //日期
	  ,laypage = layui.laypage //分页
	  layer = layui.layer //弹层
	  ,table = layui.table //表格
	  ,carousel = layui.carousel //轮播
	  ,upload = layui.upload //上传
	  ,form = layui.form
	  ,element = layui.element; //元素操作
	  var slider = layui.slider //滑块
	  
	//监听工具条
	  table.on('tool(demo)', function(obj){ //注：tool是工具条事件名，test是table原始容器的属性 lay-filter="对应的值"
	    var data = obj.data //获得当前行数据
	    ,layEvent = obj.event; //获得 lay-event 对应的值
	 //  id = data.id;forms
	 sid = data.id;
	 sname = data.name
	    form.val("showform",data);
	    form.val("forms",data);
	    if(layEvent === 'show'){
	    	layer.open({
				title:'查看学生信息',
				area:['1000px','700px'],
				//closeBtn:0,
				type:1,
				content:$("#showdiv"),
				end : function(){

	         		   // alert("你点击了右上角的X");
					$("#showdiv").hide();
	         		}
			})
	    } else if(layEvent === 'del'){
	       layer.confirm('真的删除该学生信息么', function(index){
	    	  layer.close(index);
	 		   $.ajax({
	 			   url:"deleteStudent",
	 			   type:"post",
	 			   data:{
	 				   id:data.id
	 			   },
	 			   dataType:"json",
	 			   success:function(res){
	 				   if(res.success){
	 					  layer.msg(res.message)
	 		    			  tabobj.reload();
	 				   }else{
	 					  layer.msg(res.message)
	 		    			  tabobj.reload();
	 				   }
	 			   }
	 		   })
	      });
	    }else if(layEvent === 'edit'){
	    	layer.open({
				title:'修改用户',
				area:['1000px','700px'],
				type:1,
				content:$("#rupddiv"),
				end : function(){

	         		  //alert("你点击了右上角的X");
					$("#rupddiv").hide();
	         		}
			})
	    }else if(layEvent === 'gz'){
	   	 form.render();
		    	layer.open({
					title:'跟踪操作',
					area:['500px','600px'],
					type:1,
					content:$("#gzdiv"),
					end : function(){

		         		   // alert("你点击了右上角的X");
						$("#gzdiv").hide();
		         		}
	    	})
	    }else if(layEvent === 'rz'){
		   	$(function(){
	    		 table.render({
					  elem:"#rztab",
					  url:"selNetfBysid",
					  where:{
						  stuid : data.id
					  },
					 // page:true,
					  cols:  [[ //标题栏	
					    {field: 'id', title: 'ID'}
					    ,{field: 'studentName', title: '学生名称'}
					    ,{field: 'followTime', title: '跟踪时间'}
					    ,{field: 'nextFollowTime', title: '下次跟踪时间'}
					    ,{field: 'content', title: '内容'}
					    ,{fixed: 'right', width:80, title: '操作', align:'center', toolbar: '#rzbarDemo'}
					  ]]
					});
		   	    });
		    	layer.open({
					title:'日志查看',
					area:['500px','600px'],
					type:1,
					content:$("#rzdiv"),
			       		 /*  success:function(layero,index){
			       			  //获取弹出iframe的body
			       			  var body = layer.getChildFrame('body',index);
			       			  body.find('#te').val(data.id);
			       			 // body.find('#name').attr("id",data.uid);
			       			  
			       		  }, */
			       		  end:function(){
			       			 // location.reload();
			       			$("#rzdiv").hide();
			       		  }
	    	})
	    }else if(layEvent === 'dt'){
		   	 form.render();
		    	layer.open({
					title:'動態消息操作',
					area:['500px','600px'],
					type:1,
					content:$("#dtdiv"),
					end : function(){

		         		   // alert("你点击了右上角的X");
						$("#dtdiv").hide();
		         		}
	    	})
	    }
	  });
})
 
 

 function stuaddseach(){
	 layui.use(['form','layer'],function(){
		 var layer = layui.layer;
		 var form = layui.form;
		 form.render();
		 layer.open({
			  type:1,
			  title:"录入新学生",
			  area:['600px','500px'],
			 // closeBtn:0,
			  content:$("#adddiv"),
				end : function(){

	         		   // alert("你点击了右上角的X");
					$("#adddiv").hide();
	         		}
			  
		  })
	 })
 }
 var ids ="";
 function updsseach(){
	 layui.use(['form','layer','table'],function(){
		 var layer = layui.layer;
		 var form = layui.form;
		 var table = layui.table;
		 form.render();
		 var  check = table.checkStatus("stutab");
		 //alert(check.data.length)
		// alert(check.data[0].id)
		  if(check.data.length==0){
			  layer.msg("请选择要批量操作的数据行");
			  
			  return;
		  }
		  for(var i =0; i<check.data.length;i++){
			  if(ids ==""){
				  ids = check.data[i].id;
			  }else{
				  ids +=","+ check.data[i].id;  
			  }
			 
		  }
		  
		 layer.open({
			  type:1,
			  title:"批量操作",
			  area:['400px','400px'],
			 // closeBtn:0,
			  content:$("#updsdiv"),
				end : function(){
					 location.reload();
	         		   // alert("你点击了右上角的X");
					$("#updsdiv").hide();
	         		}
			  
		  })
	 })
 }
 function closebtn(){
	 layer.closeAll();
 }
 function showclosebtn(){
	 layer.closeAll();
	 $("#showdiv").hide();
 }
 function gzclosebtn(){
	 layer.closeAll();
	 $("#gzdiv").hide();
 }
 function rzckclosebtn(){
	 layer.close(layer.index);
	 $("#rzdiv").hide();
 }
 function dtxxclosebtn(){
	 layer.closeAll();
	 $("#dtdiv").hide();
 }
 layui.use('laydate', function(){
	  var laydate = layui.laydate;
	  
	  //执行一个laydate实例
	  laydate.render({
	    elem: '#hfsj' //指定元素
	  });
	  laydate.render({
		    elem: '#xcgz' //指定元素
		  });
	  laydate.render({
		    elem: '#nbtime' //指定元素
		  });
	  laydate.render({
		    elem: '#smsj' //指定元素
		  });
	  laydate.render({
		    elem: '#jfsj' //指定元素
		  });
	  laydate.render({
		    elem: '#jbsj' //指定元素
		  });

	});

 
 //跟蹤信息添加
 function gzseachbtn(){
	var hfsj = $("#hfsj").val();
 	var qk = $("#qk option:selected").val();
 	var gzfx = $("#gzfx option:selected").val();
 	var xcgz = $("#xcgz").val();
 	var gzbz = $("#gzbz").val();
 	$.ajax({
		url : "addNetfolliws",
		type : 'post',
		data : {
			studentId : sid,
			studentName :sname,
			followTime : hfsj,
			followState : qk,
			followType : gzfx,
			nextFollowTime : xcgz,
			content : gzbz
		},
		dataType : "json",
		success : function(res) {
			if(res.success){
				alert(res.message);
				layer.close(layer.index);
				tabobj.reload();
				sid ="";
				sname ="";
				$("#gzdiv").hide();
			}else{
				alert(res.message);
				layer.close(layer.index);
				tabobj.reload();
				sid ="";
				sname ="";
				$("#gzdiv").hide();
			}
		}
		
	})
 }
 /* 批量操作 給學生分配咨詢師*/
 function updrseachbtn(){
	 //alert(ids);
	 var zxs = $("#xzxs option:selected").val();

	// alert(zxs)
	 if(zxs !=""){
		// alert(2)
		  $.ajax({
				url : "updsStuAskerBySid",
				type : 'post',
				data : {
					ids : ids,
					askerId :zxs
				},
				dataType : "json",
				success : function(res) {
					if(res.success){
						alert(res.message);
						layer.close(layer.index);
						tabobj.reload();
						ids ="";
					}else{
						alert(res.message);
						layer.close(layer.index);
						tabobj.reload();
						ids="";
					}
				}
				
			})
		 }else{
			 
			 layer.msg("请选择要分配的咨询师");
		 }
	 
 }
 //查询所有咨询师c
	$(function() {
		//alert(1)
		$.ajax({
			url : "selAllAsker",
			type : 'post',
			data : {},
			dataType : "json",
			success : function(res) {
			//alert(res.aslist.length);
				if (res.aslist.length > 0) {
					for ( var i = 0; i < res.aslist.length; i++) {
						//alert(res.aslist[i].askerName)
						$("#zxs").append("<option value='"+res.aslist[i].askerId+"'>"+ res.aslist[i].askerName+ "</option>");
					}
				}
			}
		})

	})
	$(function() {
		//alert(1)
		$.ajax({
			url : "selAllAsker",
			type : 'post',
			data : {},
			dataType : "json",
			success : function(res) {
			//alert(res.aslist.length);
				if (res.aslist.length > 0) {
					for ( var i = 0; i < res.aslist.length; i++) {
						//alert(res.aslist[i].askerName)
						$("#xzxs").append("<option value='"+res.aslist[i].askerId+"'>"+ res.aslist[i].askerName+ "</option>");
					}
				}
			}
		})

	})
		$(function() {
		//alert(1)
		$.ajax({
			url : "selAllAsker",
			type : 'post',
			data : {},
			dataType : "json",
			success : function(res) {
			//alert(res.aslist.length);
				if (res.aslist.length > 0) {
					for ( var i = 0; i < res.aslist.length; i++) {
						//alert(res.aslist[i].askerName)
						$("#nnzxs").append("<option value='"+res.aslist[i].askerId+"'>"+ res.aslist[i].askerName+ "</option>");
					}
				}
			}
		})

	})
 $(function (){
	// alert(2)
 })
 
 function addrseachbtn(){
		var name = $("#names").val();
		 	var age = $("#age").val();
		 	var phone = $("#phones").val();
		 	var qudao = $("#qudao").val();
		 	var url = $("#url").val();
		 	var gjz = $("#gjz").val();
		 	var qq = $("#qqss").val();
		 	var wx = $("#wx").val();
		 	var bz = $("#bz").val();
		 	var sex = $("#sex option:selected").val();
		 	var xl = $("#xl option:selected").val();
		 	var zt = $("#zt option:selected").val();
		 	var isbb = $("#isbb option:selected").val();
		 	if(!/^1\d{10}$/.test($("#phones").val())){
	            layer.msg("请输入正确的手机号");
	            $("#phones").val("");
	            return;
	          } 
		 	if(isNaN(age) || age>100){
		 		 layer.msg("请输入正确年龄");
		            $("#age").val("");
		            return;
		 	}
		 	if(isNaN(qq) || qq.length<5 || qq.length>10){
		 		layer.msg("请输入合法QQ");
	            $("#qq").val("");
	            return;
		 	}
		 	 var patrn= /^(?=.*?[a-zA-Z])(?=.*?[0-9])[a-zA-Z0-9]{5,18}$/;
			   if (!patrn.exec(wx)) {
				   layer.msg("请输入合法微信号");
		            $("#wx").val("");
		            return;
			   }
		 //	alert(name+age+phone+qudao+url+gjz+qq+wx+bz+sex+xl+zt+isbb)
		 	if(name !="" || phone !="" || sex !="" || qudao !="" || url !="" || gjz !="" || qq !="" || wx !="" || bz !=""  || xl !=""  || zt !=""  || isbb !="" ){
		 		//alert("法萨芬")
		 		//alert(1)
		 		$.ajax({
					url : "addStu",
					type : 'post',
					data : {
						name:name
						,sex:sex,
						age:age,
						phone:phone
						,stuStatus:xl
						,perState:zt
						,msgSource:qudao
						,sourceUrl:url
						,sourceKeyWord:gjz
						,qq:qq
						,weiXin:wx
						,isBaoBei:isbb
						,content:bz
						,createUser : loginname
					},
					dataType : "json",
					success : function(res) {
						if(res.success){
							alert(res.message);
							layer.closeAll();
							tabobj.reload();
						}else{
							alert(res.message);
							layer.closeAll();
							tabobj.reload();
						}
					}
					
				})
		 	}else{
		 		 layer.msg("请将录入的学生信息输入完善");
		 	}
 }
 
	//监听添加提交
	layui.use('form', function() {

		var form = layui.form;

/* 		form.on('submit(formDemo)', function(data) {
			var parms = data.field;
			addproducts($, parms);
			return false;
		});
 */
		//监听修改提交
		form.on('submit(updfrom)', function(data) {
			var parms = data.field;
			updateStudent($, parms);
			return false;
		});

	});
	function updateStudent($, parms) {
	//	alert(11)
		if(parms.sellPrice!="" || parms.discountPrice!=""){
			
			
			if (isNaN(parms.preMoney) || isNaN(parms.money)) {
				layer.msg("价格类型非法输入,请重新输入");
				return;
			}else if(!/^1\d{10}$/.test(parms.phone)){
		           layer.msg("请输入正确的手机号");
		           return;
		         }else{
					$.ajax({
						url : "updateStudent",
						type : "post",
						data : parms,
						dataType : 'json',
						success : function(res) {
							if (res.success) {
								layer.msg(res.message);
								layer.closeAll('page');
								tabobj.reload();
								$("#rupddiv").hide();

							} else {
								layer.msg(res.message);
								layer.closeAll('page');
								tabobj.reload();
								$("#rupddiv").hide();

							}
						}
					});
				}
		}
	}
	
	 layui.use(['form','layer', 'table'], function(){
		 
		  var laydate = layui.laydate //日期
		  ,layer = layui.layer //弹层
		  ,table = layui.table //表格
		 ,form = layui.form;
		 
		  
		//监听工具条
		  table.on('tool(rztab)', function(obj){ //注：tool是工具条事件名，test是table原始容器的属性 lay-filter="对应的值"
		    var data = obj.data //获得当前行数据
		    ,layEvent = obj.event; //获得 lay-event 对应的值

		    form.val("zxforms",data);
		    if(layEvent === 'rzck'){
		    	//alert(1)
		    	layer.open({
					title:'查看跟踪信息',
					area:['500px','400px'],
					//closeBtn:0,
					type:1,
					content:$("#zxckdiv"),
					end : function(){

		         		   // alert("你点击了右上角的X");
						$("#zxckdiv").hide();
		         		}
				})
		    }
		  })
	 })
	
	
	function dtxxseachbtn(){
		 var texts = $("#texts").val();
		 if(texts == ""){
			 layer.msg("请输入要添加的信息内容");
			 return;
		 }
		 $.ajax({
				url : "addDynamicmMessages",
				type : "post",
				data : {
					messageContent : texts,
					studentId : sid,
					studentName : sname
				},
				dataType : 'json',
				success : function(res) {
					if (res.success) {
						layer.msg(res.message);
						layer.closeAll('page');
						tabobj.reload();
						$("#dtdiv").hide();
						sid ="";
						sname ="";

					} else {
						layer.msg(res.message);
						layer.closeAll('page');
						tabobj.reload();
						$("#dtdiv").hide();
						sid ="";
						sname ="";
					}
				}
			});
	 }
	
	
	
	
	
	
	
</script>
<script type="text/html" id="twobarDemo">


<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="rz">日志</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="dt">添加动态</a>
</script>
<script type="text/html" id="rzbarDemo">
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="rzck">查看</a>
</script>
<script type="text/html" id="barDemo">

  <a class="layui-btn layui-btn-xs" lay-event="show">查看</a>
  <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="gz">跟踪</a>
</script>

<table id="stutab" lay-filter="demo"></table>
	<div id="studiv" style="display: none;">
		<form class="layui-form"  id="seavhform">
			<div class="layui-form-item">
				<!--姓名关键字、电话、咨询师、是否缴费、是否有效、是否回访、
				QQ、创建时间/上门时间/首次回访时间/缴费时间/进班时间  -->
			<label class="layui-form-label">学生姓名</label>
			    <div class="layui-input-inline">
			      <input type="text"  id="name" autocomplete="off" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">学生电话</label>
			    <div class="layui-input-inline">
			      <input type="text" id="phone" autocomplete="off" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">QQ</label>
			    <div class="layui-input-inline">
			      <input type="text" id="qq" autocomplete="off" placeholder="请输入学生QQ" class="layui-input">
			    </div>
			    <label class="layui-form-label">是否缴费</label>
				    		<div class="layui-input-inline">
						      <select id="isPay"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						      </select>
    						</div>
			    <label class="layui-form-label">咨询师</label>
				    		<div class="layui-input-inline">
						      <select id="zxs"  readonly="readonly">
						        <option value="">请选择</option>
						      </select>
    						</div>
			<div class="layui-form-item">
			   <div class="layui-inline">
				     <!--姓名关键字、电话、咨询师、是否缴费、是否有效、是否回访、
				QQ、创建时间/上门时间/首次回访时间/缴费时间/进班时间  -->
    						<label class="layui-form-label">是否有效</label>
				    		<div class="layui-input-inline">
						      <select id="isyou"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						        <option value="待定">待定</option>
						      </select>
    						</div>
    						<label class="layui-form-label">是否回访</label>
				    		<div class="layui-input-inline">
						      <select id="ishui"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						      </select>
    						</div>
    				<label class="layui-form-label">排序方式</label>
				    <div class="layui-input-inline">
				     
						      <select id="sort" name="quiz2" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="createTime">创建时间</option>
						        <option value="homeTime">上门时间</option>
						        <option value="firstVisitTime">首次回访时间</option>
						        <option value="payTime">缴费时间</option>
						        <option value="inClassTime">进班时间</option>
						      </select>
    				</div>
    				<input type="button"  value="检索" class="layui-btn  layui-icon-search"  onclick="stuseach()">
 				<!-- <button class="layui-btn layui-btn-normal" onclick="stuseach()">&#xe615;;</button>
    				<button class="layui-btn layui-btn-normal" onclick="stuaddseach()">&#xe654;</button> -->
 				      <input type="button"  value="添加" class="layui-btn layui-icon-add-circle"  onclick="stuaddseach()">
					  <input type="button"  value="批量操作" class="layui-btn layui-icon-add-circle"  onclick="updsseach()">
    			</div>
    				 
    			
    		</div>
		</div>

		</form>
	</div>
	
	<!-- 批量操作窗体  -->
	<div id="updsdiv" style="display: none;">
		<form class="layui-form"  id="updsform">
				<div class="layui-form-item">
					    <label class="layui-form-label">请选择要分配的咨询师</label>
				    		<div class="layui-input-inline">
						      <select id="xzxs"  readonly="readonly">
						        <option value="">请选择</option>
						      </select>
    						</div>
				</div>
		<div class="layui-form-item">
		    <div class="layui-input-block">
		      <input type="button"  value="提交" class="layui-btn"  onclick="updrseachbtn()">
		      <input type="button"  value="关闭" class="layui-btn"  onclick="closebtn()">
		    </div>
  		</div>
	    </form>
	</div>
	
	<!-- 跟踪窗体  -->
	<div id="gzdiv" style="display: none;">
		<form class="layui-form"  id="gzform">
		<div class="layui-form-item">
			    <label class="layui-form-label">回访时间</label>
			    <div class="layui-input-inline">
			     	 <input type="text" id="hfsj" name="age" autocomplete="off"   placeholder="yyyy-MM-dd"  readonly="readonly"  class="layui-input">
			 	 </div>
 		 </div>
 		 		<div class="layui-form-item">
			    <label class="layui-form-label">回访情况</label>
			 	 <div class="layui-input-inline">
						      <select id="qk"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="思量">思量</option>
						        <option value="上门未报名">上门未报名</option>
						        <option value="报名未进班">报名未进班</option>
						        <option value="已进班">已进班</option>
						        <option value="其他">其他</option>
						      </select>
    						</div>
 		 		</div>
				<div class="layui-form-item">
					    <label class="layui-form-label">跟踪方式</label>
				    		<div class="layui-input-inline">
						      <select id="gzfx"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="面谈">面谈</option>
						        <option value="网络">网络</option>
						        <option value="电话">电话</option>
						        <option value="其他">其他</option>
						      </select>
    						</div>
				</div>
				<div class="layui-form-item">
			    <label class="layui-form-label">下次跟踪时间</label>
			    <div class="layui-input-inline">
			     	 <input type="text" id="xcgz" name="age" autocomplete="off"    readonly="readonly"   placeholder="yyyy-MM-dd  "  class="layui-input">
			 	 </div>
 		 </div>
 		 		<div class="layui-form-item">
			    <label class="layui-form-label">备注</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="gzbz" name="phone" autocomplete="off"    placeholder="请输入备注" class="layui-input">
			 	 </div>
 		 </div>
		<div class="layui-form-item">
		    <div class="layui-input-block">
		      <input type="button"  value="提交" class="layui-btn"  onclick="gzseachbtn()">
		      <input type="button"  value="关闭" class="layui-btn"  onclick="gzclosebtn()">
		    </div>
  		</div>
	    </form>
	</div>
	
	
<!-- 添加窗体  -->
	<div id="adddiv" style="display: none;">
		<form class="layui-form"  id="addform">
		
		<div class="layui-form-item">
			    <label class="layui-form-label">请输入学生名</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="names" name="name" autocomplete="off"    placeholder="请输入学生名" class="layui-input">
			 	 </div>
 		 </div>


 		 <div class="layui-form-item">
			    <label class="layui-form-label">请输入年龄</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="age" name="age" autocomplete="off"    placeholder="请输入年龄" class="layui-input">
			 	 </div>
 		 </div>
 		 		<div class="layui-form-item">
			    <label class="layui-form-label">请输入电话</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="phones" name="phone" autocomplete="off"    placeholder="请输入电话" class="layui-input">
			 	 </div>
 		 </div>

 		 		<div class="layui-form-item">
			    <label class="layui-form-label">请输入来源渠道</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="qudao" name="qudao" autocomplete="off"    placeholder="请输入来源渠道" class="layui-input">
			 	 </div>
 		 </div>
 		 		<div class="layui-form-item">
			    <label class="layui-form-label">请输入来源网站</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="url" name="url" autocomplete="off"    placeholder="请输入来源网站" class="layui-input">
			 	 </div>
 		 </div>
 		 <div class="layui-form-item">
			    <label class="layui-form-label">请输入来源关键字</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="gjz" name="gjz" autocomplete="off"    placeholder="请输入来源关键字" class="layui-input">
			 	 </div>
 		 </div>
 		 <div class="layui-form-item">
			    <label class="layui-form-label">请输入QQ</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="qqss" name="qq" autocomplete="off"    placeholder="请输入来源QQ" class="layui-input">
			 	 </div>
 		 </div>
 		 <div class="layui-form-item">
			    <label class="layui-form-label">请输入微信</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="wx" name="wx" autocomplete="off"    placeholder="请输入微信" class="layui-input">
			 	 </div>
 		 </div>
 		 <div class="layui-form-item">
			    <label class="layui-form-label">请输入备注</label>
			    <div class="layui-input-block">
			     	 <input type="text" id="bz" name="bz" autocomplete="off"    placeholder="请输入备注" class="layui-input">
			 	 </div>
 		 </div>
 		  <div class="layui-form-item">
		<label class="layui-form-label">状态</label>
				    		<div class="layui-input-block">
						      <select id="zt"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="待业">待业</option>
						        <option value="就业">就业</option>
						        <option value="其他">其他</option>
						      </select>
 		 					</div>
 		 </div>
 		<!-- 姓名、性别、年龄、电话、学历、状态、
来源渠道、来源网站、来源关键词、学员QQ、微信号、
是否报备、在线备注 -->
 <div class="layui-form-item">
			   <label class="layui-form-label">性别</label>
				    		<div class="layui-input-block">
						      <select id="sex"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="男">男</option>
						        <option value="女">女</option>
						      </select>
 		 					</div>
 		 </div>
 		 <div class="layui-form-item">
			    <label class="layui-form-label">学历</label>
				    		<div class="layui-input-block">
						      <select id="xl"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="中专">中专</option>
						        <option value="大专">大专</option>
						        <option value="本科">本科</option>
						        <option value="研究生">研究生</option>
						        <option value="其他">其他</option>
						      </select>
 		 					</div>
 		 </div>
 		 <div class="layui-form-item">
			   <label class="layui-form-label">是否报备</label>
				    		<div class="layui-input-block">
						      <select id="isbb"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						      </select>
 							 </div>
 		 </div>

 		 <div class="layui-form-item">
		    <div class="layui-input-block">
		      <input type="button"  value="提交" class="layui-btn"  onclick="addrseachbtn()">
		      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
  		</div>
  		</form>
	</div>
	
	<!-- 查看窗体 -->
	<div id="showdiv" style="display: none;">
		<form class="layui-form"  id="showform" lay-filter="showform">
			<div class="layui-form-item">
					<input type="hidden" name="id" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			<label class="layui-form-label">学生姓名</label>
			    <div class="layui-input-inline">
			      <input type="text" name="name" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">学生电话</label>
			    <div class="layui-input-inline">
			      <input type="text" name="phone" autocomplete="off"   readonly="readonly" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">QQ</label>
			    <div class="layui-input-inline">
			      <input type="text" name="qq" autocomplete="off"  readonly="readonly" placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">性别</label>
			    <div class="layui-input-inline">
			      <input type="text" name="sex" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">年龄</label>
			    <div class="layui-input-inline">
			      <input type="text" name="age" autocomplete="off"   readonly="readonly" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">学历</label>
			    <div class="layui-input-inline">
			      <input type="text" name="stuStatus" autocomplete="off"  readonly="readonly" placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">状态</label>
			    <div class="layui-input-inline">
			      <input type="text" name="perState" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">来源渠道</label>
			    <div class="layui-input-inline">
			      <input type="text" name="msgSource" autocomplete="off"   readonly="readonly" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">来源网站</label>
			    <div class="layui-input-inline">
			      <input type="text" name="sourceUrl" autocomplete="off"  readonly="readonly" placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">来源关键词</label>
			    <div class="layui-input-inline">
			      <input type="text" name="sourceKeyWord" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">所在区域</label>
			    <div class="layui-input-inline">
			      <input type="text" name="address" autocomplete="off"   readonly="readonly" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">学员关注</label>
			    <div class="layui-input-inline">
			      <input type="text" name="stuConcern" autocomplete="off"  readonly="readonly" placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">微信</label>
			    <div class="layui-input-inline">
			      <input type="text" name="weiXin" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">备注</label>
			    <div class="layui-input-inline">
			      <input type="text" name="content" autocomplete="off"   readonly="readonly" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">来源部门</label>
			    <div class="layui-input-inline">
			      <input type="text" name="fromPart" autocomplete="off"  readonly="readonly" placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否报备</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isBaoBei" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">咨询师</label>
			    <div class="layui-input-inline">
			      <input type="text" name="askerId" autocomplete="off"   readonly="readonly" placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">录入人</label>
			    <div class="layui-input-inline">
			      <input type="text" name="createUser" autocomplete="off"  readonly="readonly" placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">课程方向</label>
			    <div class="layui-input-inline">
			      <input type="text" name="learnForward" autocomplete="off" readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">是否有效</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isValid" autocomplete="off"   readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">打分</label>
			    <div class="layui-input-inline">
			      <input type="text" name="record" autocomplete="off"  readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">无效原因</label>
			    <div class="layui-input-inline">
			      <input type="text" name="lostValid" autocomplete="off" readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">是否回访</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isReturnVist" autocomplete="off"   readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">首访时间</label>
			    <div class="layui-input-inline">
			      <input type="text" name="firstVisitTime" autocomplete="off"  readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否上门</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isHome" autocomplete="off" readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">上门时间</label>
			    <div class="layui-input-inline">
			      <input type="text" name="homeTime" autocomplete="off"   readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">定金金额</label>
			    <div class="layui-input-inline">
			      <input type="text" name="preMoney" autocomplete="off"  readonly="readonly" placeholder="暂未录入该行数据 " class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否缴费</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isPay" autocomplete="off" readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">缴费时间</label>
			    <div class="layui-input-inline">
			      <input type="text" name="payTime" autocomplete="off"   readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">缴费金额</label>
			    <div class="layui-input-inline">
			      <input type="text" name="money" autocomplete="off"  readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否退费</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isReturnMoney" autocomplete="off" readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">退费原因</label>
			    <div class="layui-input-inline">
			      <input type="text" name="returnMoneyReason" autocomplete="off"   readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">是否进班</label>
			    <div class="layui-input-inline">
			      <input type="text" name="isInClass" autocomplete="off"  readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
		</div>
		<!-- 名、性别、年龄、电话、学历、状态、来源渠道、来源网站、来源关键词、所在区域、学员关注、来源部门、
		学员QQ、微信号、是否报备、咨询师、录入人  b.咨询师录入：姓名（咨询）、课程方向、打分、是否有效、无效原因、
		是否回访、首访时间、是否上门、上门时间、定金金额、定金时间、是否缴费、缴费时间、缴费金额、是否退费、退费原因
		、是否进班、进班时间、进班备注、咨询师备注 -->
		<div class="layui-form-item">
			<label class="layui-form-label">进班时间</label>
			    <div class="layui-input-inline">
			      <input type="text" name="inClassTime" autocomplete="off" readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">进班备注</label>
			    <div class="layui-input-inline">
			      <input type="text" name="inClassContent" autocomplete="off"   readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
			    <label class="layui-form-label">咨询师备注</label>
			    <div class="layui-input-inline">
			      <input type="text" name="askerContent" autocomplete="off"  readonly="readonly" placeholder="暂未录入该行数据" class="layui-input">
			    </div>
		</div>
				<!-- <div class="layui-form-item">
			  	 <div class="layui-inline">
    						<label class="layui-form-label">是否有效</label>
				    		<div class="layui-input-inline">
						      <select id="isyou"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						        <option value="待定">待定</option>
						      </select>
    						</div>
    						<label class="layui-form-label">是否回访</label>
				    		<div class="layui-input-inline">
						      <select id="ishui"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						      </select>
    						</div>
    			</div>
    		</div> -->
    		<div class="layui-form-item">
			  	 <div class="layui-inline">
			  	  <input type="button"  value="关闭" class="layui-btn"  onclick="showclosebtn()">
			  	 </div>
			 </div>
		

		</form>
	</div>
	
	
	
	
	
	<!-- 修改窗体  -->
	<div id="rupddiv"  style="display: none;">
		<form class="layui-form"  id="forms" lay-filter="forms" >
		<div class="layui-form-item">
					<input type="hidden" name="id" autocomplete="off" readonly="readonly" placeholder="请输入学生姓名" class="layui-input">
			<label class="layui-form-label">学生姓名</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnname" name="name" autocomplete="off"  placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    <label class="layui-form-label">学生电话</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnphone" name="phone" autocomplete="off"   placeholder="请输入学生电话" class="layui-input">
			    </div>
			    <label class="layui-form-label">QQ</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnqq" name="qq" autocomplete="off"   placeholder="请输入学生QQ" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">性别</label>
			    <div class="layui-input-inline">
			   		<select id="nnsex"  name="sex" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="男">男</option>
						        <option value="女">女</option>
						      </select>
			    </div>
			    <label class="layui-form-label">年龄</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnage" name="age" autocomplete="off"   placeholder="请输入学生年龄" class="layui-input">
			    </div>
			    <label class="layui-form-label">学历</label>
			    <div class="layui-input-inline">
			    <select id="nnxl"  name="stuStatus" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="中专">中专</option>
						        <option value="大专">大专</option>
						        <option value="本科">本科</option>
						        <option value="研究生">研究生</option>
						        <option value="其他">其他</option>
						      </select>
 		 					</div>
			    </div>
		<div class="layui-form-item">
			<label class="layui-form-label">状态</label>
			    <div class="layui-input-inline">
			    <select id="nnzt" name="perState"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="待业">待业</option>
						        <option value="就业">就业</option>
						        <option value="其他">其他</option>
						      </select>
			    </div>
			    <label class="layui-form-label">来源渠道</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnmsgSource" name="msgSource" autocomplete="off"    placeholder="请输入来源渠道" class="layui-input">
			    </div>
			    <label class="layui-form-label">来源网站</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnsourceUrl" name="sourceUrl" autocomplete="off"  placeholder="请输入来源网站" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">来源关键词</label>
			    <div class="layui-input-inline">
			      <input type="text"  id="nnsourceKeyWord" name="sourceKeyWord" autocomplete="off"  placeholder="请输入来源关键词" class="layui-input">
			    </div>
			    <label class="layui-form-label">所在区域</label>
			    <div class="layui-input-inline">
			      <input type="text"  id="nnaddress"  name="address" autocomplete="off"   placeholder="请输入所在区域" class="layui-input">
			    </div>
			    <label class="layui-form-label">学员关注</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnstuConcern" name="stuConcern" autocomplete="off"   placeholder="请输入学员关注" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">微信</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnwx" name="weiXin" autocomplete="off"  placeholder="请输入学生微信" class="layui-input">
			    </div>
			    <label class="layui-form-label">备注</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nncontent" name="content" autocomplete="off"   placeholder="请输入备注" class="layui-input">
			    </div>
			    <label class="layui-form-label">来源部门</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnfromPart"  name="fromPart" autocomplete="off"   placeholder="请输入来源部门" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否报备</label>
			    <div class="layui-input-inline">
			    	<select id="nnisbb" name="isBaoBei"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						      </select>
			    </div>
			    <label class="layui-form-label">咨询师</label>
			    <div class="layui-input-inline">
			      <select id="nnzxs"  name="askerId" readonly="readonly">
						        <option value="">请选择</option>
						      </select>
			    </div>
			    <label class="layui-form-label">录入人</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nncreateUser" name="createUser" autocomplete="off"  readonly="readonly" placeholder="请输入录入人" class="layui-input">
			    </div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">课程方向</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nnlearnForward"  name="learnForward" autocomplete="off"  placeholder="课程方向" class="layui-input">
			    </div>
			    <label class="layui-form-label">是否有效</label>
			    <div class="layui-input-inline">
			    	<select id="nnisyou" name="isValid" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						        <option value="待定">待定</option>
						      </select>
				</div>
			    <label class="layui-form-label">打分</label>
			    <div class="layui-input-inline">
			      <input type="text" name="record" autocomplete="off"   placeholder="打分" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">无效原因</label>
			    <div class="layui-input-inline">
			      <input type="text" name="lostValid" autocomplete="off"  placeholder="请输入无效原因" class="layui-input">
			    </div>
			    <label class="layui-form-label">是否回访</label>
			    <div class="layui-input-inline">
			   	 <select id="nnishui" name="isReturnVist" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						        <option value="待定">待定</option>
				 </select>
			    </div>
			    <label class="layui-form-label">首访时间</label>
			    <div class="layui-input-inline">
			      <input type="text" id="nbtime" name="firstVisitTime" autocomplete="off"   readonly="readonly" placeholder="yyyy-MM-dd  " class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否上门</label>
			    <div class="layui-input-inline">
			     <select id="issm" name="isHome" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
				 </select>
			    </div>
			    <label class="layui-form-label">上门时间</label>
			    <div class="layui-input-inline">
			      <input type="text" id="smsj" name="homeTime" autocomplete="off"    readonly="readonly" placeholder="yyyy-MM-dd  " class="layui-input">
			    </div>
			    <label class="layui-form-label">定金金额</label>
			    <div class="layui-input-inline">
			      <input type="text" name="preMoney"  autocomplete="off"   placeholder="请输入定金金额 " class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否缴费</label>
			    <div class="layui-input-inline">
			    	<select id="isj" name="isPay" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
				 </select>
			    </div>
			    <label class="layui-form-label">缴费时间</label>
			    <div class="layui-input-inline">
			      <input type="text" id="jfsj" name="payTime" autocomplete="off"   readonly="readonly"  placeholder="yyyy-MM-dd  " class="layui-input">
			    </div>
			    <label class="layui-form-label">缴费金额</label>
			    <div class="layui-input-inline">
			      <input type="text" name="money" autocomplete="off"  placeholder="请输入缴费金额" class="layui-input">
			    </div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否退费</label>
			    <div class="layui-input-inline">
			    	<select id="istuis" name="isReturnMoney" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
				 </select>
			    </div>
			    <label class="layui-form-label">退费原因</label>
			    <div class="layui-input-inline">
			      <input type="text" name="returnMoneyReason" autocomplete="off"   placeholder="请输入退费原因 "class="layui-input">
			    </div>
			    <label class="layui-form-label">是否进班</label>
			    <div class="layui-input-inline">
			    	<select id="isjinb" name="isInClass" readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
				 </select>
			    </div>
		</div>
		<!-- 名、性别、年龄、电话、学历、状态、来源渠道、来源网站、来源关键词、所在区域、学员关注、来源部门、
		学员QQ、微信号、是否报备、咨询师、录入人  b.咨询师录入：姓名（咨询）、课程方向、打分、是否有效、无效原因、
		是否回访、首访时间、是否上门、上门时间、定金金额、定金时间、是否缴费、缴费时间、缴费金额、是否退费、退费原因
		、是否进班、进班时间、进班备注、咨询师备注 -->
		<div class="layui-form-item">
			<label class="layui-form-label">进班时间</label>
			    <div class="layui-input-inline">
			      <input type="text" id="jbsj" name="inClassTime" autocomplete="off"  readonly="readonly" placeholder="yyyy-MM-dd  " class="layui-input">
			    </div>
			    <label class="layui-form-label">进班备注</label>
			    <div class="layui-input-inline">
			      <input type="text" name="inClassContent" autocomplete="off"  placeholder="请输入进班备注" class="layui-input">
			    </div>
			    <label class="layui-form-label">咨询师备注</label>
			    <div class="layui-input-inline">
			      <input type="text" name="askerContent" autocomplete="off"   placeholder="请输入咨询师备注" class="layui-input">
			    </div>
		</div>
				<!-- <div class="layui-form-item">
			  	 <div class="layui-inline">
    						<label class="layui-form-label">是否有效</label>
				    		<div class="layui-input-inline">
						      <select id="isyou"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						        <option value="待定">待定</option>
						      </select>
    						</div>
    						<label class="layui-form-label">是否回访</label>
				    		<div class="layui-input-inline">
						      <select id="ishui"  readonly="readonly">
						        <option value="">请选择</option>
						        <option value="是">是</option>
						        <option value="否">否</option>
						      </select>
    						</div>
    			</div>
    		</div> -->
	  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <!-- <input type="button"  value="提交" class="layui-btn"  lay-filter="showform"   onclick="stuupdrseachbtn()"> -->
		     <!-- 	<input type="button"  value="提交" class="layui-btn"  lay-filter="updfrom"  > -->
		    <button class="layui-btn" lay-submit  lay-filter="updfrom">提交</button>
		      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
  		</div>
  		</form>
	</div>
	<!-- 日志查看窗体 -->
	<div id="rzdiv" style="display: none;">
		<table id="rztab"  lay-filter="rztab" ></table>	
	</div>
<!-- 日志跟踪信息查看窗体  -->
<div id="zxckdiv"  style="display: none;">
		<form class="layui-form"  id="zxforms" lay-filter="zxforms" >
		<div class="layui-form-item">
		<!-- {field: 'studentName', title: '学生名称'}
					    ,{field: 'followTime', title: '跟踪时间'}
					    ,{field: 'nextFollowTime', title: '下次跟踪时间'}
					    ,{field: 'content', title: '内容'} -->
			<label class="layui-form-label">学生姓名</label>
			    <div class="layui-input-block">
			      <input type="text" name="studentName" readonly="readonly" autocomplete="off"  placeholder="请输入学生姓名" class="layui-input">
			    </div>
			    </div>
			    <div class="layui-form-item">
			    <label class="layui-form-label">跟踪时间</label>
			    <div class="layui-input-block">
			      <input type="text" name="followTime" readonly="readonly" autocomplete="off"   placeholder="请输入学生电话" class="layui-input">
			    </div>
			    </div>
			    <div class="layui-form-item">
			    <label class="layui-form-label">下次跟踪时间</label>
			    <div class="layui-input-block">
			      <input type="text"  name="nextFollowTime" readonly="readonly" autocomplete="off"   placeholder="请输入学生QQ" class="layui-input">
			    </div>
				</div>
				<div class="layui-form-item layui-form-text">
				    <label class="layui-form-label">内容</label>
				    <div class="layui-input-block">
				      <textarea name="content" readonly="readonly" placeholder="请输入内容" class="layui-textarea"></textarea>
				    </div>
				</div>
				<div class="layui-form-item">
				    <div class="layui-input-block">
				      <input type="button"  value="关闭" class="layui-btn"  onclick="rzckclosebtn()">
				    </div>
		  		</div>
		</form>
		</div>
		<!-- 动态消息添加窗体  -->
<div id="dtdiv"  style="display: none;">
		<form class="layui-form"  >
		
				<div class="layui-form-item layui-form-text">
				    <label class="layui-form-label">内容</label>
				    <div class="layui-input-block">
				      <textarea id="texts" name="texts" placeholder="请输入内容" class="layui-textarea"></textarea>
				    </div>
				</div>
				<div class="layui-form-item">
				    <div class="layui-input-block">
				     <input type="button"  value="提交" class="layui-btn"  onclick="dtxxseachbtn()">
				      <input type="button"  value="关闭" class="layui-btn"  onclick="dtxxclosebtn()">
				    </div>
		  		</div>
		</form>
		</div>
</body>
</html>